{include file="public/layout" /}

<body class="bodystyle" style="overflow-y: scroll;">
<div id="toolTipLayer" style="position: absolute; z-index: 9999; display: none; visibility: visible; left: 95px; top: 573px;"></div>
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<div class="page min-hg-c-10">
    <form class="form-horizontal" id="post_form">
        <div class="ncap-form-default">
            <dl class="row">
                <dt class="tit"> <label for="title"><em>*</em>广告名称</label> </dt>
                <dd class="opt">
                    <input type="text" name="title" id="title" data-id="0" onkeyup="detectionTitleRepeat(this);" onchange="detectionTitleRepeat(this);" class="input-txt" autocomplete="off">
                    <p class="notic2 red" id="title_tips"></p>
                </dd>
            </dl>

            <dl class="row">
                <dt class="tit"> <label for="type">广告类型</label> </dt>
                <dd class="opt">
                    <label class="curpoin"><input type="radio" id="type1" name="type" value="1" onclick="typeSwitch(1);">图片</label>
                    &nbsp; &nbsp;
                    <label class="curpoin"><input type="radio" id="type2" name="type" value="2" onclick="typeSwitch(2);">多媒体</label>
                    &nbsp; &nbsp;
                    <label class="curpoin"><input type="radio" id="type3" name="type" value="3" onclick="typeSwitch(3);">HTML代码</label>
                </dd>
            </dl>

            <dl class="row 1615775137_dl" style="display: none;" id="1615775137_1">
                <dt class="tit"> <label>广告内容</label> </dt>
                <dd class="opt">
                    <div class="tab-pane">
                        <table class="table table-bordered">
                            <tbody>
                                <tr>
                                    <td>
                                        <div class="sort-list"><div class="images_upload"></div></div>
                                        <a href="javascript:void(0);" onClick="GetUploadify(30, '', 'allimg', 'imgupload_call_back');" class="img-upload b-img-upload mb15" title="点击上传"><div class="y-line"></div><div class="x-line"></div></a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <!-- 上传图片显示的样板 start -->
                    <div class="images_upload_tpl none">
                        <div class="images_upload ic">
                            <div class="ic">
                                <div class='upimg' title="拖动修改排序" onmouseover="upimgMouseover(this);" onmouseout="upimgMouseout(this);">
                                    <div class='icaction' style="display: none">
                                        <span class="load_images" onclick="">
                                            <a href="javascript:void(0);" style="color: white"><i class='fa fa-search-plus'></i>大图</a>
                                        </span>
                                        <span class="load_images" onclick="">
                                            <i class='fa fa-file-text-o'></i>信息
                                        </span>
                                    </div>
                                    <div class='cover-bg' style="display: none"></div>
                                    <img src="__STATIC__/admin/images/add-button.jpg"/>
                                    <a class="delect" href="javascript:void(0);" title="删除"></a>
                                </div>

                                <div class="load_input" data-showOrHide="hide">
                                    <input type="hidden"/>
                                    <span class="span_input"> <input type="hidden"/> </span>
                                    <textarea placeholder="请输入标题..." style="height: 28px;"></textarea>
                                    <textarea placeholder="请输入链接网址..." style="height: 28px;"></textarea>
                                    <textarea placeholder="广告注释：支持HTML代码" style="height: 64px;"></textarea>
                                    <div class="operation">
                                        <a href="javascript:void(0)">&nbsp;&nbsp;</a>
                                        <a href="javascript:void(0)">&nbsp;&nbsp;</a>
                                        <a style="width: 32%;" href="javascript:void(0);">&nbsp;&nbsp;</a>
                                    </div>
                                 </div>    
                            </div>
                        </div>
                    </div>
                    <!-- 上传图片显示的样板 end -->
                </dd>
            </dl>

            <dl class="row 1615775137_dl" style="display: none;" id="1615775137_2">
                <dt class="tit"> <label for="type">广告内容</label> </dt>
                <dd class="opt">
                    <input type="text" name="video_litpic" id="video_litpic" class="input-txt">
                    <input type="file" id="courseware_file" data-type='local' onchange="videoUploadLitpic(this)" style="display: none;">
                    &nbsp;<a href="javascript:void(0);" class="ncap-btn ncap-btn-green " id="videoUploadLitpicLocal" onclick="$('#courseware_file').attr('data-type', 'local').trigger('click');">本地上传</a>
                    &nbsp;<a href="javascript:void(0);" class="ncap-btn ncap-btn-green" id="previewVideo" onclick="openPreviewVideo();">预览</a>
                </dd>
            </dl>

            <dl class="row 1615775137_dl" style="display: none;" id="1615775137_3">
                <dt class="tit"> <label for="type">广告内容</label> </dt>
                <dd class="opt"><textarea rows="5" cols="60" id="html_intro" name="html_intro" style="height: 200px;"></textarea></dd>
            </dl>

            <dl class="row">
                <dt class="tit"> <label>备注信息</label> </dt>
                <dd class="opt"><textarea rows="5" cols="60" id="intro" name="intro" style="height: 60px;"></textarea></dd>
            </dl>

            <div class="bot"><a href="JavaScript:void(0);" onclick="submitForm('#post_form');" class="ncap-btn-big ncap-btn-green">保存</a></div>
        </div>
    </form>
</div>

<script type="text/javascript">
    var selectedType = 1;
    var mediaType = "{$media_type}";
    var uploadMaxFilesize = "{$upload_max_filesize}";
    var open_preview_video = "{:url('Pc/open_preview_video')}";
    var upVideo = "{:url('Ueditor/upVideo', ['savepath' => 'media'])}";
    var detection_title_repeat = "{:url('AdPosition/detection_title_repeat', ['_ajax'=>1])}";
    var submitFormUrl = "{:url('Pc/avd_add', ['_ajax'=>1])}";
</script>
<script type="text/javascript" src="__SKIN__/js/admin_ad_position.js?v={$version}"></script>
{include file="public/footer" /}